// swift-tools-version:5.5
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "Storage",
    products: [
        .library(name: "Storage", targets: ["Storage"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/jiucaishuo/Asura.git", from: "1.1.2"),
        .package(url: "https://gitee.com/jiucaishuo/Coder.git", from: "1.0.0"),
        .package(url: "https://gitee.com/jiucaishuo/Standard.git", from: "1.4.2"),
    ],
    targets: [
        .target(
            name: "Storage",
            dependencies: [
                .product(name: "LMDB", package: "Asura"),
                .product(name: "Standard", package: "Standard"),
                .product(name: "Coder", package: "Coder"),
            ],
            path: "Sources"
        ),
        .testTarget(name: "StorageTests", dependencies: ["Storage"]),
    ]
)
